package o;

import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseCardBean;
import com.huawei.appmarket.service.videostream.model.VideoReportBean;

public class ems {
    private dyk ˎ;
    private int ॱ = -1;

    public void ˎ(String str, String str2, int i) {
        VideoReportBean videoReportBean = new VideoReportBean();
        videoReportBean.ˋ(str2);
        videoReportBean.ॱ(str);
        String str3 = null;
        try {
            str3 = videoReportBean.toJson();
        } catch (IllegalAccessException e) {
            Logger.e("StreamDataUploadHelper", "stream data upload error." + e.toString());
        }
        cgo.ˋ("10", str3, i);
    }

    public void ˋ(BaseCardBean baseCardBean, int i) {
        if (this.ˎ == null || this.ॱ != i) {
            this.ॱ = i;
            this.ˎ = new dyk(i);
        }
        this.ˎ.ॱ(baseCardBean);
    }
}
